/* Lac Viet ERP                                                
 * Copyright (c) 2013 Lac Viet                                 
 * http://www.lacviet.com.vn                                   
 *=============================================================
 * File name            : SR_tblDelivery.cs         
 * Created by           : Auto - 04/23/2014 15:03:45                     
 * Last modify          : Auto - 04/23/2014 15:03:45                     
 * Version              : 1.0                                  
 * ============================================================
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace LineOfBusiness.Poco
{
	[Serializable]
	public partial class SR_tblDelivery : BaseEntity
	{
		public SR_tblDelivery()
		{
		}

	    #region Properties

		private string _DeliveryID;

        [Key]
		[RegularExpression(@"[a-zA-Z0-9_-]*")]
		[Required]
        [MaxLength(20)]
        public string DeliveryID 
		{ 
			get
			{
                return _DeliveryID;
			}
			set 
			{ 
                _DeliveryID = value;
			} 
		}

		private DateTime? _DeliveryDate;
        public DateTime? DeliveryDate 
		{ 
			get
			{
                return _DeliveryDate;
			}
			set 
			{ 
                _DeliveryDate = value;
			} 
		}

		private string _DeliveryName;
        [MaxLength(200)]
        public string DeliveryName 
		{ 
			get
			{
                return _DeliveryName;
			}
			set 
			{ 
                _DeliveryName = value;
			} 
		}

		private string _CustomerID;
        [MaxLength(20)]
        public string CustomerID 
		{ 
			get
			{
                return _CustomerID;
			}
			set 
			{ 
                _CustomerID = value;
			} 
		}

		private string _Status;
        [MaxLength(1)]
        public string Status 
		{ 
			get
			{
                return _Status;
			}
			set 
			{ 
                _Status = value;
			} 
		}

		private string _EmployeeID;
        [MaxLength(20)]
        public string EmployeeID 
		{ 
			get
			{
                return _EmployeeID;
			}
			set 
			{ 
                _EmployeeID = value;
			} 
		}

		private string _UserID;
        [MaxLength(20)]
        public string UserID 
		{ 
			get
			{
                return _UserID;
			}
			set 
			{ 
                _UserID = value;
			} 
		}
		/// <summary>
        /// Column: SR_tblDeliveryLines.DeliveryID
        /// </summary>
		public ICollection<SR_tblDeliveryLines> SR_tblDeliveryLines { get;set; }


        #endregion
	}
}
